package myApp.mobile;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import myApp.classi.Connection;

public class Option extends Activity
{
  private ArrayAdapter<CharSequence> m_adapterForSpinner;
  private Spinner m_myDynamicSpinner;

  private void fillSpinner(String paramString)
  {
    this.m_adapterForSpinner.add(paramString);
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903045);
    Connection localConnection = new Connection();
    Spinner localSpinner = (Spinner)findViewById(2131165202);
    Button localButton = (Button)findViewById(2131165203);
    this.m_myDynamicSpinner = ((Spinner)findViewById(2131165202));
    this.m_adapterForSpinner = new ArrayAdapter(this, 17367048);
    this.m_adapterForSpinner.setDropDownViewResource(17367049);
    this.m_myDynamicSpinner.setAdapter(this.m_adapterForSpinner);
    String[] arrayOfString = localConnection.getAllCat().split("!i!");
    for (int i = 0; ; i++)
    {
      if (i >= arrayOfString.length)
      {
        new String[4];
        ArrayAdapter.createFromResource(this, 2130968577, 17367048).setDropDownViewResource(17367049);
        localButton.setOnClickListener(new Option.1(this, localSpinner, localConnection));
        return;
      }
      fillSpinner(arrayOfString[i]);
    }
  }

  public boolean onCreateOptionsMenu(Menu paramMenu)
  {
    super.onCreateOptionsMenu(paramMenu);
    getMenuInflater().inflate(2131099650, paramMenu);
    return true;
  }

  public boolean onOptionsItemSelected(MenuItem paramMenuItem)
  {
    switch (paramMenuItem.getItemId())
    {
    case 2131165223:
    case 2131165224:
    default:
    case 2131165221:
    case 2131165222:
    case 2131165225:
    }
    while (true)
    {
      return true;
      Intent localIntent3 = new Intent();
      localIntent3.setClass(this, Home.class);
      startActivity(localIntent3);
      continue;
      Intent localIntent2 = new Intent();
      localIntent2.setClass(this, Ppage.class);
      startActivity(localIntent2);
      continue;
      Intent localIntent1 = new Intent();
      localIntent1.setClass(this, History.class);
      startActivity(localIntent1);
    }
  }
}

/* Location:           C:\Users\Spider22\Desktop\TesiMBUS\classes_dex2jar.jar
 * Qualified Name:     myApp.mobile.Option
 * JD-Core Version:    0.6.1
 */